﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model IEnumerable<PessMvc.Models.ExpertJudgeModel>

@{
    ViewBag.Title = "Index";
}

<div id="m-title">
    <h2>评委列表</h2>
        @using (Html.BeginForm("AddExpertJudges", "ExpertJudge", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <div id="m-op" class="f-bow">
               @* <div class="u-uf u-uf-da"><input type="file" name="file" class="fileNew" id="fileNew" onchange="document.getElementById('textNew').value=this.value" /></div>
                <input type="text" name="textNew" id="textNew" class="u-it textNew" readonly="true" />
                <input type="button" class="u-btn btnNew" value="浏览" />
                <input type="submit" value="上传" class="u-btn" />
                @Html.ActionLink(" 下载评委模版", "Download", "Home", new { filename = "pw_template.xls" }, new { @class="f-btn-long f-btn-mr"})*@
                @Html.ActionLink("返回评委组列表 ", "Index", "ExpertGroup", new { activityID = ViewBag.ActivityID }, new { @class = "f-btn-long" })
                @Html.Hidden("activityID", new { activityID = Model })
            </div>
        }
 </div>


<fieldset>
    <div id="m-ej">
        @using(Html.BeginForm("Index","ExpertJudge",FormMethod.Get)){
            @Html.Hidden("ActivityID", new { ActivityID = ViewBag.ActivityID },null)
            <span> 评委组： @Html.DropDownList("ExpertGroupID", string.Empty) </span>
            <input type="submit" value="查询" class="u-btn f-btn-mr" />
        }
            @using(Html.BeginForm("ExportToExcel","ExpertJudge",FormMethod.Post))
            {
                @Html.Hidden("ActivityID", new { ActivityID = ViewBag.ActivityID },null)
                <input type="submit" value="下载评委名单Excel" class="u-btn f-btn-long2" />
            }
    </div>
    <div id="export">
        @Html.Partial("_ExpertJudgesPartial", Model, new ViewDataDictionary{{"ExpertGroupID",-1},{"ActivityID",(int)ViewBag.ActivityID}})
    </div>

    @*@{
        var grid=new WebGrid(Model,defaultSort:"RealName");
    }
    @grid.GetHtml(columns:grid.Columns(
        grid.Column("RealName"),
        grid.Column("Gender"),
        grid.Column("Birthdate"),
        grid.Column("Phone"),
        grid.Column("SerialNumber"),
        grid.Column("ExpertGroupCallsign")
    ))*@
</fieldset>
     <script>
//            for (i=0;i< document.getElementsByTagName("table").length;i++){
//                document.getElementsByTagName("table")[i].className = "oddTable";
 //               document.getElementsByTagName("table")[i].id = "showDetail";
//            }
      </script>
